<?php
/*
 * Affiche la liste des modes sous forme de boutons
 */
?>
<div class="radioBtn">
    <?php
    
    $conditions = array('order' => 'ordre');
    if($this->manuel){$conditions['condition'] = 'manuel = 1';}
    
    echo CHtml::activeRadioButtonList(
		$this->model, $this->attribute, CHtml::listData(Mode::model()->findAll($conditions), 'id', function($mode) {
				return $mode->getPicto();
			  }), array('template' => '{input}{label}', 'separator' => '')
    );
    ?>
</div>

